/*
 * Copyright (C) 2013 The i18nCTS Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.googlecode.i18nCTS.view;

import java.util.Calendar;

import android.util.Log;

import com.googlecode.i18nCTS.provider.i18nCTSProvider;
import com.googlecode.i18nCTS.util.i18nCTSUtils;

public class DateUtilsRangeDiffTimeSectionFragment extends AbstractSectionFragment {
	private static final String TAG = "I18nCTS_" + DateUtilsRangeDiffTimeSectionFragment.class.getSimpleName();
	public static final String CATEGORY = "DateUtils_RangeDiffTime";
	static int flags = 0;

	public DateUtilsRangeDiffTimeSectionFragment() {
		Log.d(TAG, "ctr");
	}
    
	@Override
	public String getCategory() {
		return CATEGORY;
	}
	
	@Override
	public void buildList(i18nCTSProvider provider) {
    	Calendar cal = Calendar.getInstance();
    	cal.set(2012, 1, 3, 4, 7); // set 2012 feb 3rd, 4th hour of day, 7 min

    	Calendar cal2 = Calendar.getInstance();
    	cal2.set(2012, 1, 3, 14, 17); // set 2012 feb 3rd, 4th hour of day, 7 min
	    
	    i18nCTSUtils utils = new i18nCTSUtils(mContext);
	    utils.buildDateTime(provider, cal.getTimeInMillis(), cal2.getTimeInMillis());        
    	provider.addTitle(CATEGORY);
    } 
}

